#ifndef     _RTMP_H
#define     _RTMP_H
#include    "mp4util.h"
#include    <rtmp.h>
#include    <log.h>
#include    <sys/time.h>
#include    <math.h>

typedef struct naluunit_s {
    int     type;
    int     size;
    u_char *data;
} naluunit_t;
  
typedef struct rtmpmetadata_s {
    uint32_t    width;
    uint32_t    height;
    uint32_t    framerate;     // fps
    uint32_t    videodatarate; // bps
    uint32_t    spsppslen;
    char       *spspps;
  
    int         hasaudio;
    uint32_t    audiosamplerate;
    uint32_t    audiosamplesize;
    uint32_t    audiochannels;
    uint32_t    audiospeccfglen;
    char       *audiospeccfg;
  
} rtmpmetadata_t;

#define  FLV_CODECID_H264  7 
#define  FLV_CODECID_AAC   10







#endif //_RTMP_H
